package com.thrc.borrow.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.thrc.borrow.dao.PersonnelDao;
import com.thrc.borrow.entity.Personnel;
import com.thrc.borrow.vo.PersonnelVo;

@Service
public class PersonnelService implements BaseService<Personnel, PersonnelVo> {

	@Autowired
	private PersonnelDao personnelDao;

	@Override
	public PersonnelVo selectById(Personnel t) {
		return personnelDao.selectById(t);
	}

	@Override
	public List<PersonnelVo> selectAll(Personnel t) {
		return personnelDao.selectAll(t);
	}

	@Override
	public int selectCount(Personnel t) {
		return personnelDao.selectCount(t);
	}

	@Override
	public List<PersonnelVo> selectByPage(Personnel t) {
		t.setStartRow(t.getPageIndex(), t.getPageSize());
		return personnelDao.selectByPage(t);
	}

	@Override
	public void update(Personnel t) {
		personnelDao.update(t);
	}

	@Override
	public void delete(Personnel t) {
		personnelDao.delete(t);
	}

	@Override
	public void insert(Personnel t) {
		personnelDao.insert(t);
	}

}
